
 var zoomProvider = (function (){
    var zoom = {
        value: 100,
        min: 50,
        max: 200,
        step: 10
    };
    return {
        zoomIn: function (){
            if (zoom.value <= zoom.min) return;
            zoom.value -= zoom.step;
        },
        zoomOut: function (){
            if (zoom.value >= zoom.max) return;
            zoom.value += zoom.step;
        },
        scale: function (){
            zoom.value = parseInt((zoom.value).toFixed(0));
            return zoom.value / 100.0;
        },
        resetScale: function(){
            zoom.value =100;
        }
    };
 })();

 module.exports = zoomProvider;
